using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NCS.Module.CMS.Library.Providers;

namespace NCS.Module.CMS.Library.Feed
{
    public class FeedContentController
    {
        public static int AddFeedContentToMSN(FeedContentInfo feedcontent)
        {
            int id = DataAccessProvider.Instance().AddFeedContentToMSN(feedcontent);
            return id;
        }
        public static FeedContentInfo GetFeedInfo(string feedcontentID)
        {
            FeedContentInfo info;
            info = DataAccessProvider.Instance().GetFeedInfo(feedcontentID);
            return info;
        }
        public static DataTable GetFeedContents(string categoryid, int pagesize, int curpage, out int totalrecord, string text, DateTime fromdate, DateTime todate, bool chkdeploy)
        {
            DataTable dtContents;
            dtContents = DataAccessProvider.Instance().GetFeedContents(categoryid, pagesize, curpage, out totalrecord, text, fromdate, todate, chkdeploy);
            return dtContents;
        }
        public static void ContentDelete(string feedcontentid)
        {
            DataAccessProvider.Instance().ContentDelete(feedcontentid);
        }

        public static void UpdateMoved(string id)
        {
            DataAccessProvider.Instance().UpdateMoved(id);
        }
    }
}
